var doc = fl.getDocumentDOM();
var lib = doc.library;
var items = lib.items;

fl.outputPanel.clear();

var linkage = prompt( "Enter the linkage or class to be found" );

for( var i = 0; i<items.length; i++ )
{
	var item = items[ i ];
	var type = item.itemType;
	if( type == "movie clip" )
	{
				
		if( item.linkageBaseClass == linkage )
		{
			fl.trace( item.name );
		}
		
		if( item.linkageClassName == linkage )
		{
			fl.trace( item.name );
		}
	}
}

fl.trace( "Find Linkage in Library Finished" );